#include "imageshow.h"

imageshow::imageshow(QWidget* parent)
{
	ui.setupUi(this);
}

void imageshow::setimg(const cv::Mat& mat)
{
	imgbuffer = mat;
	QImage q(mat.data, mat.cols, mat.rows, QImage::Format_RGB888);
	ui.label->setPixmap(QPixmap::fromImage(q));
}
